package core;

import java.util.Date;

public class Transaction
{	
	private double ammount;
	private String description;
	private String type;
	private TransactionDirection direction;
	private Date date;
	
	public Transaction(double ammount, String description, String type, TransactionDirection direction, Date date){
		this.ammount = ammount;
		this.description = description;
		this.type = type;
		this.direction = direction;
		this.date = date;
	}

	public double getAmmount(){
		return ammount;
	}
	
	public void setAmmount(double ammount){
		this.ammount = ammount;
	}
	
	public TransactionDirection getDirection(){
		return direction;
	}

	public String getDescription(){
		return description;
	}
	
	public void setDescription(String description){
		this.description = description;
	}
	
	public String getType(){
		return type;
	}
	
	public void setType(String type){
		this.type = type;
	}
	
	public Date getDate(){
		return date;
	}
	
	public void setDate(Date date){
		this.date = date;
	}
	
	@Override public String toString(){
		return getDescription() + " " + getAmmount() + " " + getDate();
	}
}
